<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>中奖列表</title>
  <!-- 1. 引入react核心库 -->
  <script src="./node_modules/react/umd/react.development.js"></script>
  <!-- 2. 引入react-dom 用于支持react操作dom -->
  <script src="./node_modules/react-dom/umd/react-dom.development.js"></script>
  <div id="b">

  </div>


  <script>
    const aa=React.createElement('div',{className:'a',a:"列表"},
    React.createElement('h2',{className:'a'},"中奖列表",
    React.createElement('ul',{className:"list"},
      React.createElement('li',{onClick:function(){alert("李四")}},"2.李四"),
      React.createElement('li',null,'3. 王五'),
      ))
    
    )
    let b =ReactDOM.createRoot(document.getElementById('b'))
    // console.log(a)
    b.render(aa)//渲染
  </script>
</head>
<body>
  
</body>
</html>